package day02;

public class StringDemo {
    public static void main(String[] args) {
        long start=System.currentTimeMillis();
        String s="";
        for(int i=1;i<=100000;i++){
            s=s+i;//
            //s=s+Integer.toString(i);
        }
        System.out.println(s.length());
        System.out.println(s.charAt(47));
        long end=System.currentTimeMillis();
        System.out.print((end-start)/1000.0+" second(s).");
    }
}
